package com.generic.test02.dmeo03;

/**
 * @author bin
 * @date 2025 - 03 -25
 **/
public class People<P extends IWhenShun> {
    /**
     * 宠物
     * */
    private P pet;

    public People() {
    }

    public People(P pet) {
        this.pet = pet;
    }

    public P getPet() {
        return pet;
    }

    public void setPet(P pet) {
        this.pet = pet;
    }

    public void shopping(){
        System.out.println("逛街");
    }
}
